<?php
/**
 * Created by PhpStorm.
 * User: admin
 * Date: 2017/12/31
 * Time: 23:51
 */

namespace app\api\validate;

use think\Validate;

class TestValidate extends Validate
{
    /**
     * 继承 Validate 类
     * 固定的变量名 $rule
     */
    protected $rule = [
        'name' => 'require|max:10',
        'email'=> 'email'
    ];
}